package ysm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ysm.entity.Recruitment;
import ysm.mapper.RecruitmentMapper;

@Service
public class RecruitmentService {
	
	@Autowired
	private RecruitmentMapper recruitmentMapper;
	
	public void deleteByPrimaryKey(Integer id) {
		recruitmentMapper.deleteByPrimaryKey(id);
	}

	public void insert(Recruitment record) {
		recruitmentMapper.insert(record);
	}

	public void insertSelective(Recruitment record) {
		recruitmentMapper.insertSelective(record);
	}

    public Recruitment selectByPrimaryKey(Integer id) {
    	return recruitmentMapper.selectByPrimaryKey(id);
    }

    public void updateByPrimaryKeySelective(Recruitment record) {
    	recruitmentMapper.updateByPrimaryKeySelective(record);
    }

    public void updateByPrimaryKey(Recruitment record) {
    	recruitmentMapper.updateByPrimaryKey(record);
    }
    
    public List loadAllRecruitment() {
    	return recruitmentMapper.loadAllRecruitment();
    }
}
